<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Standing</title>
        <link href="css/global.css" rel="stylesheet" type="text/css" />
        <script src="http://code.jquery.com/jquery-latest.js"></script>
        <script src="js/global.js"></script>
        <!-- jquery DataTable !-->
        <h:outputStylesheet name="../resources/DataTables-1.9.4/media/css/jquery.dataTables.css"/>
        <h:outputScript name="../resources/DataTables-1.9.4/media/js/jquery.js"/>
        <h:outputScript name="../resources/DataTables-1.9.4/media/js/jquery.dataTables.js"/>>
        <script language="javascript">
            $(document).ready(function(){
                $("[class$='dataTable']").dataTable();
                $("div.navy").load("navy.xhtml");
            });
        </script>
    </h:head>
    <h:body>
        <div id="background">
            <div class="navy"></div>
            <div id="content">
                <div id="standingDiv">
                    <f:view>
                        <h:form>
                            <h1><span class="whiteHeader">Standing</span></h1>
                            <h:dataTable class="dataTable" value="#{standing.teams}" var="item">
                                <h:column>
                                    <f:facet name="header">
                                        <h:outputText value="Team"/>
                                    </f:facet>
                                    <h:outputText value="#{item.name}"/>
                                </h:column>
                                <h:column>
                                    <f:facet name="header">
                                        <h:outputText value="Logo"/>
                                    </f:facet>
                                    <h:outputText value="#{item.logoUrl}"/>
                                </h:column>
                                <h:column>
                                    <f:facet name="header">
                                        <h:outputText value="Win"/>
                                    </f:facet>
                                    <h:outputText value="#{item.currentWin}"/>
                                </h:column>
                                <h:column>
                                    <f:facet name="header">
                                        <h:outputText value="Lose"/>
                                    </f:facet>
                                    <h:outputText value="#{item.currentLose}"/>
                                </h:column>
                                <h:column>
                                    <f:facet name="header">
                                        <h:outputText value="Draw"/>
                                    </f:facet>
                                    <h:outputText value="#{item.currentWithdraw}"/>
                                </h:column>
                            </h:dataTable>
                        </h:form>
                    </f:view>
                </div>
            </div>
        </div>
    </h:body>
</html>
